export type Role = {
  roleId: number;
  roleName: string;
};
export interface UserStore {
  token: string;
  roles: Role[];
  roleId: number | null;
  userInfo: UserInfo | null;
  actions: {
    setToken: (token: string) => void;
    setRoles: (roles: Role[]) => void;
    setRoleId: (roleId: number | null) => void;
    clearUser: () => void;
    setUserInfo: (userInfo: UserInfo) => void;
  };
}
export interface UserInfo {
  avatar: string;
  deptCode: number;
  key: string;
  mobile: string;
  name: string;
  name_pass: string;
  mobile_pass: string;
  roleName: string;
  roleType: string;
}
